package com.person.news.service;

import java.util.List;

import com.person.commons.utils.FlipPageInfo;
import com.person.news.model.News;
import com.person.news.model.NewsAnnex;
import com.person.title.model.TitleFunc;

public interface NewsService {
  public String createNews(News news) throws Exception;
  public void createNewsAnnex(NewsAnnex newsAnnex);
  public FlipPageInfo findAllNews(FlipPageInfo fpi);
  public News findNewsById(String id);
  public List<NewsAnnex> findAnnexByNewsId(String id);
  public void deleteNewsById(String id);
  public void modifyNews(News news);
  public void deleteNewsAnnex(String[] ids);
  public FlipPageInfo findNewsByQualification(String hql ,FlipPageInfo fpi);
  public boolean findNewsByNewsTitle(String newsTitle);
  /**
	 * 根据funcId从栏目功能表TitleFunc查找功能名
	 */
  public TitleFunc findTitleFuncByFuncId(String funcId);
  
	/**
	 * 根据funcId查找Product
	 */
	public List<News> findNewsByFuncId(String funcId) ;

/**
 * 查找产品信息，分页列表
 * @param fpi
 * @return
 */
public FlipPageInfo findNewsByFuncId (String funcId ,FlipPageInfo fpi) ;

public List<News> findNewsByNewsFlag(int newsFlag);

}